﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace One.Models
{ 
    [Table("serial")]
    public class Serial
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
         
        //public string Number { get; set; }
        
        public string Title { get; set; }
        
        public string Excerpt { get; set; }
        
        public string ReadNum { get; set; }
        
        [DataType(DataType.DateTime)]
        public DateTime MakeTime { get; set; }
        
        //public string StartVideo { get; set; }

        public int AuthorId { get; set; }
        
        [ForeignKey("AuthorId")]
        public virtual Author Author { get; set; }
        
        //public bool HasAudio { get; set; }
         
        public List<int> SerialList { get; set; }
    }
}